import {ACCESS_TOKEN, ADMIN, USER_ID, USER_INFO} from "@/store/mutation-types";

import storage from 'store'

function getUserInfo() {
    let userInfoLac = storage.get(USER_INFO);
    return userInfoLac
}


function getUserId() {
    let id = storage.get(USER_ID);
    return id
}

function getToken() {
    let token = storage.get(ACCESS_TOKEN);
    return token
}

function setAdmin(data) {
    storage.set(ADMIN, data);
}

function getAdmin() {
    let id = storage.get(ADMIN);
    return id
}

export {
    getUserInfo,
    getUserId,
    getToken, setAdmin, getAdmin
}